Skip to main content

Waveform Experimental

The Waveform component displays a Sample.

export component Waveform {
@property sample: Sample
@property channel: Int = 0
@property range: SampleRange? = nil
@property color: Color = 0xFF000000
}
import { Waveform } from audio_components
import { get_sample_from_zone } from kontakt

export var main = Waveform(sample: get_sample_from_zone(named: "My Zone"))

This component was introduced as experimental feature in Kontakt 8.9.

Constructor

sample: Sample Required

The sample to display.

See Sample.

channel: Int = 0

The channel of the sample to display.

range: SampleRange? = nil

The range of samples to display. If set to nil, the entire sample is displayed.

See SampleRange.

color: Color = 0xFF000000

The fill color.

Layout Behavior

Fills the available area.